﻿(function ($) {
    $(function () {
        var _modalManager;
        var _$form = null;

        this.init = function (modalManager) {
            _modalManager = modalManager;

            _$form = _modalManager.getModal().find('form[name=StudentOrderForm]');
            _$form.validate();
        };

        getCurrentDate();

        $("#NextButton").click(function () {
            //if (!_$form.valid()) {
            //    return;
            //}
            alert("ok");
            goItemShoppingCart();
        })
      
    });
})(jQuery);
//获取当前日期
function getCurrentDate() {
    var currDate = new Date();
    var str = "";
    str = currDate.toLocaleDateString();
    $("#txtOrderDate").val(str);
}
//下一步
var saveFirstURL = 'StudentApplys/Save1';
function goItemShoppingCart() {
    var secondHomeURL = 'StudentApplys/OrderItemShoppingCart';
    //window.location = secondHomeURL;
    
}